function getScrollTop() {
  var scroll_top = 0;
  if (document.documentElement && document.documentElement.scrollTop) {
    scroll_top = document.documentElement.scrollWidth;
    console.log(scroll_top);
  } else if (document.body) {
    scroll_top = document.body.scrollWidth;
    console.log(scroll_top);
  }
  return scroll_top;
}

var normalWidth = window.innerWidth;
var normalHeight = window.innerHeight;
window.onresize = function() {
  // if (normalWidth > window.innerWidth || h < normalHeight.innerHeight) {
  //   location.reload();
  // }
  getScrollTop();
};
